package com.demo.attBcollectionapi;

import java.util.Arrays;
import java.util.List;

public class ListDemo {
	
	public static void main(String[] args) {
		List<Integer> l = Arrays.asList(1, 2, 3, 4);
		//replaceAll：类似map，区别是之间替换原数据
		l.replaceAll(x -> x * 2);
		System.out.println(l);
	}

}
